from appium.webdriver.common.appiumby import AppiumBy

from basic.basepage import BasePage



class PageMain(BasePage):
	def goto_goods_category(self):
		from page.page_message_goods_category import PageGoodsCategory
		locator = (AppiumBy.XPATH,"//*[@text=\"分类\"]")
		self.click(locator)
		return PageGoodsCategory()
	def goto_new_product(self):
		from page.page_message_new_product import PageNewProduct
		locator = (AppiumBy.XPATH, "//*[@text=\"小米上新\"]")
		self.click(locator)
		return PageNewProduct()
